package ru.sushka.lunch.factory;

import ru.sushka.lunch.dao.AbstractDao;
import ru.sushka.lunch.enitiy.*;
import ru.sushka.lunch.dao.files.FileCourseDao;
import ru.sushka.lunch.dao.files.FileCustomerDao;
import ru.sushka.lunch.dao.files.FileMenuItemDao;
import ru.sushka.lunch.dao.files.FileOrderDao;

/**
 * 10.10.12 : 22:43
 * User: sushka
 */
public class FileDaoFactory implements AbstractFactory {

    @Override
    public AbstractDao<Order> getOrderDao() {
        return new FileOrderDao();
    }

    @Override
    public AbstractDao<Customer> getCustomerDao() {
        return new FileCustomerDao();
    }

    @Override
    public AbstractDao<Course> getCourseDao() {
        return new FileCourseDao();
    }
    
    @Override
    public AbstractDao<MenuItem> getMenuItemDao(){
        return new FileMenuItemDao();
    }
}
